package com.laf.manager.querycondition;

import lombok.Data;

@Data
public class MemberCarQueryCondition {

    /**
     * 搜索会员姓名
     */
    private String memberName;

    /**
     * 搜索车牌号
     */
    private String carNumber;

    /**
     * 排序条件：points 积分热度；首拼；sort 排序号
     */
    private String sort = "id";

    /**
     * 排序顺序：asc 升序；desc 降序
     */
    private String direction = "desc";

    /**
     * 分页
     */
    private int page = 1;
    private int size = 10;

    public int getOffset() {
        return (page - 1) * size;
    }

    public String getSort() {
        String result = "id";

        return result;
    }
}
